package com.cvit;
class SuperClass {
	public int x;
	public SuperClass(){
		x=4;
		System.out.println("in superClass: x="+x);
	}
	public void aMethod(){
		System.out.println("in superClass.aMethod()");
	}
}
 class SubClass1 extends SuperClass {
	public int x;
	public SubClass1(){
		x=6;
		System.out.println("in subClass: x="+x);
	}
	public void aMethod(){
		System.out.println("in SubClass1.aMethod()");

		System.out.println("super.x =  " +super.x+", sub.x=%d" +this.x); 
		
	}
	public int aMethod(int a,int b){
		return a+b;
	}
}
